package com.lening.collect.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.collect.dto.PledgeDTO;
import com.lening.collect.pojo.Pledge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lening.collect.vo.PledgeVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Mapper
public interface PledgeMapper extends BaseMapper<Pledge> {
    Page<PledgeVo> get(PledgeDTO pledgeDTO);
    PledgeVo getid(Long id);
    //根据状态查询
    Page<PledgeVo> getByStatusPage(PledgeDTO pledgeDTO);
    //退还押金
    int updateStatusPayInt(Long id);
}
